<%@ page language="java" contentType="text/html; charset=utf-8"    pageEncoding="utf-8"%>
<%@include file="header.jsp"%>
<style type="text/css">
<!--
body {
	margin-left: 0px;
	margin-top: 0px;
	margin-right: 0px;
	margin-bottom: 0px;
}
.STYLE1 {
	color: #666666;
	font-weight: bold;
}
.STYLE5 {color: #666666}
.STYLE6 {
	color: #135294;
	font-weight: bold;
}
-->
</style>
<div align="left">
<s:iterator value="listAllParents" status="status">
	<s:if test="#status.index == 0">
   		<a href="admin/productTypeList.action?productTypeParenBean.parentId=<%=com.remist.common.Constant.LEVEL_ROOT %>" target="main">产品类别列表</a>
	</s:if>
	<s:if test="#status.count>0 && #status.index < #status.count">
	   &nbsp;>><a href="productTypeList.action?productTypeParenBean.parentId=<s:property value='id'/>"><s:property value="name"/></a>
	</s:if>
</s:iterator>
</div>
<div align="center">产品类型列表</div>
 <table width="95%"  border="0" cellpadding="3" cellspacing="2" bgcolor="#FFFFFF" align="center">
   <tr>
     <td nowrap background="images/bg_table.jpg" bgcolor="#ECEAE6">名称</td>
     <td nowrap background="images/bg_table.jpg" bgcolor="#ECEAE6">操作</td>
   </tr>
   <s:iterator value="productTypes">
     <tr bgcolor='#F1F3F5' onmouseover = "this.style.backgroundColor = '#FFDCB0'" onmouseout = "this.style.backgroundColor = ''" style='cursor:hand'>
       <td><s:property value="name"/></td>
       <td>
       <a href="productTypeBeforeUpdate.action?productType.id=<s:property value='id'/>&productTypeParenBean.id=<s:property value='parentId'/>">编辑</a>
       <a href="productTypeDelete.action?productType.id=<s:property value='id'/>" onclick="javascript:if(confirm('确定删除该用户吗')) return true; else return false;">删除</a> 
		<a href="productTypeBeforeAdd.action?productTypeParenBean.parentId=<s:property value='id'/>">新增子分类</a>
		<a href="productTypeList.action?productTypeParenBean.parentId=<s:property value='id'/>">查阅子分类</a>
    	</td>
     </tr>
   </s:iterator>
   <tr>
     <td colspan="2" nowrap  bgcolor='#E4EDF9'>
     <%--
     	<a href="userList.action?currentPage=<s:property value='prevPage'/>">上一页</a> 
     	<a href="userList.action?currentPage=<s:property value='nextPage'/>">下一页</a>
     	共 <s:property value='totalPage'/>页 
      --%>
     	<a href="productTypeBeforeAdd.action?productTypeParenBean.parentId=<s:property value='productTypeParenBean.parentId'/>">新增</a>
     </td>
   </tr>
</table>
 